﻿//
// Created: 2018/9/27
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;

namespace Model.WXshopBuiness.Map
{
    internal  class PromotionsKanJiaDetailMap:EntityTypeConfiguration< PromotionsKanJiaDetail >    
    {
        public PromotionsKanJiaDetailMap()
        {
             this.ToTable("Promotions_KanJiaDetail");
             this.HasKey(i => new { i.ID });
             this.Property(i => i.ID).HasColumnName("ID");                     
             this.Property(i => i.KanJiaID).HasColumnName("KanJiaID");                     
             this.Property(i => i.UserID).HasColumnName("UserID");                     
             this.Property(i => i.CreateTime).HasColumnName("CreateTime");                     
             this.Property(i => i.KanJiaMoney).HasColumnName("KanJiaMoney");                     
             this.Property(i => i.UserName).HasColumnName("UserName");                     
        }   
    }
    
     public static class PromotionsKanJiaDetailMapExtensions
    {
        public static void UserPromotionsKanJiaDetailMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new PromotionsKanJiaDetailMap());
        }
    }
}